This script it is useful to use on the main page of a site. It is possible, that other inexperienced webmasters make a link to your site from frames and forget to specify target= "_top" and therefore your page gets loaded in frame. So this script allows you to achieve the effect that, when your page is loaded, any existing frames disappear. The text selected red is necessary for replacing.
<script language="JavaScript">
<!--
setTimeout ("changePage()", 100);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location="http://www.your.url";
}
// -->
</script>